Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
11 lines (8 loc) · 363 Bytes

13.5 - swoole_event_del.md

File metadata and controls

11 lines (8 loc) · 363 Bytes

swoole_event_del

swoole_event_del函数用于从reactor中移除监听的socketswoole_event_del应当与swoole_event_add成对使用。 函数原型:

bool swoole_event_del(mixed $sock);

参数为socket的文件描述符。

必须在socket关闭前使用swoole_event_del移除事件监听,否则可能会产生内存泄漏